package com.zzdz.generator.entity;

/**
 * 代码生成常量
 *
 * @author Zzdz
 */
public class GeneratorConstant {

    /**
     * 数据库类型
     */
    public static final String DATABASE_TYPE = "mysql";
    /**
     * 数据库名称
     */
    public static final String DATABASE_NAME = "zzdz_base";

    /**
     * 生成代码的临时目录
     */
    public static final String TEMP_PATH = "zzdz_gen_temp/";

    /**
     * java类型文件后缀
     */
    public static final String JAVA_FILE_SUFFIX = ".java";
    /**
     * mapper文件类型后缀
     */
    public static final String MAPPER_FILE_SUFFIX = "Mapper.java";
    /**
     * service文件类型后缀
     */
    public static final String SERVICE_FILE_SUFFIX = "Service.java";
    /**
     * service impl文件类型后缀
     */
    public static final String SERVICEIMPL_FILE_SUFFIX = "ServiceImpl.java";
    /**
     * controller文件类型后缀
     */
    public static final String CONTROLLER_FILE_SUFFIX = "Controller.java";
    /**
     * mapper xml文件类型后缀
     */
    public static final String MAPPERXML_FILE_SUFFIX = "Mapper.xml";
    /**
     * view文件类型后缀
     */
    public static final String LIST_FILE_SUFFIX = "List.html";
    /**
     * view文件类型后缀
     */
    public static final String ADD_FILE_SUFFIX = "Add.html";
    /**
     * view文件类型后缀
     */
    public static final String EDIT_FILE_SUFFIX = "Edit.html";
    /**
     * view文件类型后缀
     */
    public static final String VIEW_FILE_SUFFIX = "View.html";
    /**
     * entity模板
     */
    public static final String ENTITY_TEMPLATE = "entity.ftl";
    /**
     * mapper模板
     */
    public static final String MAPPER_TEMPLATE = "mapper.ftl";
    /**
     * service接口模板
     */
    public static final String SERVICE_TEMPLATE = "service.ftl";
    /**
     * service impl接口模板
     */
    public static final String SERVICEIMPL_TEMPLATE = "serviceImpl.ftl";
    /**
     * controller接口模板
     */
    public static final String CONTROLLER_TEMPLATE = "controller.ftl";
    /**
     * mapper xml接口模板
     */
    public static final String MAPPERXML_TEMPLATE = "mapperXml.ftl";
    /**
     * 列表界面
     */
    public static final String LIST_TEMPLATE = "list.ftl";
    /**
     * 添加界面
     */
    public static final String ADD_TEMPLATE = "add.ftl";
    /**
     * 编辑界面
     */
    public static final String EDIT_TEMPLATE = "edit.ftl";
    /**
     * 查看界面
     */
    public static final String VIEW_TEMPLATE = "view.ftl";
}
